package com.advaita.gui;

import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.GridLayout;
import java.awt.event.KeyEvent;

import javax.swing.JButton;
import javax.swing.JComponent;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTabbedPane;

public class TabPanel extends JPanel {

	public TabPanel() {

		// JLabel placeholder = new JLabel("A placeholder");
		// super.add(placeholder);

		JTabbedPane jtp = new JTabbedPane();
		JPanel jp1 = new JPanel();
		JPanel jp2 = new JPanel();
		JLabel label1 = new JLabel();
		label1.setText("You are in area of Tab1");
		JLabel label2 = new JLabel();
		label2.setText("You are in area of Tab2");
		jp1.add(label1);
		jp2.add(label2);
		jtp.addTab("Tab1", jp1);
		jtp.addTab("Tab2", jp2);
	}
}
